﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using Sharp.DataTransferObject;
using Sharp.Infrastructure;
using Sharp.Infrastructure.Interfaces;
using Sharp.Infrastructure.Search;

namespace Sharp.ServiceContracts
{
    [ServiceContract]
    public interface IPlatformService : IApplicationServiceContract
    { /// <summary>
      /// 保存子系统
      /// </summary>
      /// <param name="model"></param>
      /// <returns></returns>
        [OperationContract, FaultContract(typeof(FaultData))]
        Result SaveSubSystem(SubSystemDTO model);

        /// <summary>
        /// 删除子系统
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        [OperationContract, FaultContract(typeof(FaultData))]
        Result DeleteSubSystem(Guid[] ids);

        /// <summary>
        /// 获取一条主数据
        /// </summary>
        /// <returns></returns>
        [OperationContract, FaultContract(typeof(FaultData))]
        SubSystemDTO GetSubSystemInfo(Guid id);
        /// <summary>
        /// 获取分页数据
        /// </summary>
        /// <param name="pf"></param>
        /// <returns></returns>
        [OperationContract, FaultContract(typeof(FaultData))]
        PagedResult<SubSystemDTO> GetSubSystemPaged(PagingFeature pf);
    }
}
